import request from '@/utils/request'

export function getFiles(query) {
  return request({
    url: '/dfile/file/listByForeignId/',
    method: 'GET',
    params: query
  })
}

export function uploadFile(query) {
  return request({
    url: '/dfile/file/uploadById/',
    method: 'POST',
    data: query
  })
}

export function deleteFile(query) {
  return request({
    url: `/dfile/file/${query}`,
    method: 'DELETE'
  })
}
